package cn.tedu.annotation;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

public class Demo {
}

@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.TYPE,ElementType.METHOD,ElementType.FIELD})
@interface Cat{
    String name() default "";
    int value() default 0;
}


@Cat()
class TestDemo{
    @Cat(666)
    String host;
//    @Cat(name = "00")
    @Cat(name = "一",value = 999)
    public void play(){}
}